package org.example.class_sch.config;

import org.example.class_sch.model.Message;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class MessageConfig {
    @Bean
    public Message MessageConfig() {
        Message message = new Message();
        message.setMessage("Hello World");
        message.setAuthor("zhangsan");
        return message;
    }
}
